package Thinh.thinh.dao;

import java.io.Serializable;
import java.util.List;

public interface GenericDAO<T, ID extends Serializable> {
	
	T findById(ID id);
	
	void update(T entity);
	
	List<T> findAll();
	


	T create(T entity);

	void delete(T entity);

	/**
	 * Affects every managed instance in the current persistence context!
	 */

}
